package com.quanxiaoha.xiaohashu.note.biz.rpc;


import com.quanxiaoha.xiaohashu.distributed.api.DistributedIdGeneratorFeignApi;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;

/**
 * @Author: jingyan_liu
 * @CreateTime: 2025-07-30
 * @Description:
 * @Version: 1.0
 */


@Component
public class DistributedIdGeneratorRpcService {
	
	@Resource
	private DistributedIdGeneratorFeignApi distributedIdGeneratorFeignApi;
	
	/**
	 * 生成雪花算法 ID
	 *
	 * @return
	 */
	public String getSnowflakeId() {
		return distributedIdGeneratorFeignApi.getSnowflakeId("test");
	}
	
}